Heaps and Hops

نویسنده

  • Daniel Hirschkoff
چکیده

This dissertation is about the specification and verification of copyless message-passing programs, a particular kind of concurrent programs that communicate by message passing. Instead of copying messages over channels, processes exchange pointers into a shared memory where the actual contents of messages are stored. Channels are themselves objects in the heap that can be communicated, thus achieving full mobility. This flexible and efficient programming paradigm must be used carefully: every pointer that is communicated becomes shared between its sender and its recipient, which may introduce races. To err on the side of caution, the sender process should not attempt to access the area of storage circumscribed by a message once it has been sent. Indeed, this right is now reserved to the recipient, who may already have modified it or even disposed of it. In other words, the ownership of pieces of heap hops from process to process following the flow of messages. Copyless message passing combines two features of programs that make formal verification challenging: explicit memory management and concurrency. To tackle these difficulties, we base our approach on two recent developments. On the one hand, concurrent separation logic produces concise proofs of pointer-manipulating programs by keeping track only of those portions of storage owned by the program. We use such local reasoning techniques to analyse the fluxes of ownership in programs, and ensure in particular that no dangling pointer will be dereferenced or freed at runtime. On the other hand, channel contracts, a form of session types introduced by the S♯ programming language, provide an abstraction of the exchanges of messages that can be used to statically verify that programs never face unexpected message receptions and that all messages are delivered before a channel is closed. The contributions contained in this dissertation fall into three categories. First, we give a semantics to copyless message-passing programs, the ownership transfers they induce and contracts, and link the three together. In doing so, we provide the first formal model of a theoretically significant subset of the S♯ programming language. In particular, we show that some properties of their contracts rub off on programs, which justifies their use as protocol specifications. Second, we introduce the first proof system for copyless message passing, based on separation logic and contracts. The proof system discharges parts of the verification of programs on the verification of their contracts. The marriage of these two techniques allows one to prove that programs are free from memory faults, race conditions and message-passing errors such as unspecified receptions and undelivered messages. Moreover, we show how the logic and contracts cooperate to prove the absence of memory leaks. Third, we give an implementation of our analysis, Heap-Hop, that takes annotated

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

اثرات مواجهه پری ناتال عصاره الکلی گل رازک (Humulus lupulus) بر بلوغ جنسی و برخی شاخص‌های تولیدمثلی موش‌های سوری ماده

Background: Humulus lupulus (Hops) is well-known throughout the world as the raw material in the brewing industry. In addition, hops have been found to have estrogenic and antioxidant properties. The object of this study aimed to examine the effects of hops during gestation and lactation on the onset of puberty, estrus cycle, reproductive organ weights and fertility index in female mice. Metho...

متن کامل

P-152: The Effect of Hops (Humulus lupulus L) Extracts on Hormone Levels and Sexual Cells in Adult Male Mice

Background: Hops Plant (Humulus lupulus L.) plants is very beneficial has many industrial and medical applications. hops has protein, amino acids, lipids, fatty acids, sugars such as glucose and fructose, pectin, salts, wax and estrogenic compounds. So the aim of this study was to evaluate the effect of hops extracts on hormone levels and sex cells in adult mice. Materials and Methods: 40 adult...

متن کامل

Chemical composition of two samples of Humulus lupulus flowers (vernalized and wild hops)

Background and objectives: Humulus lupulus, a plant belonging to the family Cannabaceae, is used as a medicinal plant with therapeutic applications in different nations. In this study, two samples of H. lupulus (vernalized and wild hops) were selected for further analysis about differences of their essential oils. Methods: The essential oils f...

متن کامل

Pairing Heaps are Sub - optimalbyMichael

Pairing heaps were introduced as a self-adjusting alternative to Fibonacci heaps. They provably enjoy log n amortized costs for the standard heap operations. Although it has not been veri ed that pairing heaps perform the decrease key operation in constant amortized time, this has been conjectured and extensive experimental evidence supports this conjecture. Moreover, pairing heaps have been ob...

متن کامل

Improved Upper Bounds for Pairing Heaps

Pairing heaps are shown to have constant amortized time Insert and Meld, thus showing that pairing heaps have the same amortized runtimes as Fibonacci heaps for all operations but Decrease-Key.

متن کامل

Effects of light and sound stimuli on spatial distribution and swimming activity of Daphnia under laboratory conditions

Aquatic ecosystems are heterogeneous in terms of light and sound distribution. The aim of this study was to investigate the effect of environmental abiotic factors, light and sound stimuli, on Daphnia (Daphnia magna) swimming behaviour.  Here, we examined behavioural changes of Daphnia (N=24) in response to light and sound treatments simultaneously. The treatments concerned a 2×2 design with br...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011